﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Noea.Graph
{
    // Represents an Edge in a Directed, Unweigthed Graph

    public class Edge
    {
        private Vertex from;
        private Vertex to;

        public Edge(Vertex from, Vertex to)
        {
            this.from = from;
            this.to = to;
        }

        public Vertex From
        {
            get
            {
                return from;
            }
        }

        public Vertex To
        {
            get
            {
                return to;
            }
        }

        public override string ToString()
        {
            return "[Edge From:" + From + " To:" + To + "]";
        }
    }
}
